package com.joe.xl.common.framework.controller;


import com.github.pagehelper.PageInfo;
import com.joe.xl.common.framework.service.ICrmCustomerService;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixProperty;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.TimeUnit;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author joe
 * @since 2020-08-21
 */
@RestController
@RequestMapping("/test")
public class CrmCustomerController {
    private final static Logger logger = LoggerFactory.getLogger(CrmCustomerController.class);

    @Autowired
    private ICrmCustomerService customerService;

    @RequestMapping("/testmaster1")
    public Map<String, Object> testMaster(){
        logger.info("into testmaster ...");

        Map<String, Object> map = customerService.testMaster();

        return map;
    }

}
